#{extends 'main.html' /} 
#{set title:'User Topics'/}
#{if size == false}
<h1> You do not have any created topics to display</h1>
#{/if}
#{else}
<div>


<br/>
#{form @UserController.relateToTopic()}
<br/>

User Created Topics :
<select name ="userTopic"	>
#{list items: userTopics, as: 'userTopics'}

<option value="${userTopics.name}" >${userTopics.name}</option>

#{/list}

</select>

Name of topic you want to relate to :
<select name ="relateTopic"	>
#{list items: allTopics, as: 'alltopics'}

<option value="${alltopics.name}" >${alltopics.name}</option>

#{/list}

</select>

<input type="submit" value = "Relate" />

#{/form}
</div>
#{/else}